<?php
 require "config/mysql.php";
 $id = $_POST["id"];
 $flag = $_POST["flag"];
 $tr = $pdo -> exec("UPDATE message SET flag = $flag WHERE id = $id;");
 if($tr==1){
 	echo $tr;
 }


 

